﻿<!doctype html>
<html class="no-js" lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">

<head th:replace="~{/public::public-head}"></head>

<script th:src="@{/js/test.js}"></script>
<style type="text/css">
    .create-photo-left{
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }
    .error{
        color: red;
        text-align: center;
    }
</style>

<body class="template-color-1">

    <div id="main-wrapper">
        <div th:insert="~{/public::navigate}"></div>
        <div style="height: 100px; border-bottom: 1px solid #e2e4ea"></div>

        <!-- 中间部分 Start -->
        <div class="dashboard-content-section section bg_color--5">
            <div class="container-fluid p-0">
                <div class="row no-gutters">
                    <!-- 侧边栏 -->
                    <div th:replace="~{/public::sidebar(active='createHR')}"></div>
                    <!-- 具体内容 -->
                    <div class="col-xl-10 col-lg-9">
                        <div id="forbidden" hidden> 当前账号已被限制使用 </div>
                        <span  sec:authorize="isAuthenticated()" sec:authentication="principal.accountStatus"
                               type="text" id="accountStatus" hidden></span>

                        <div class="dashboard-main-inner">
                            <div class="row">
                                <div class="col-12">
                                    <div class="page-breadcrumb-content mb-40">
                                        <h1>新建 HR 账号</h1>
                                    </div>
                                    <div sec:authentication="authorities" hidden id="authorities"></div>
                                </div>
                            </div>
                            <div class="dashboard-overview">
                                <div class="row">
                                    <div class="col-xl-12 col-12">
                                        <div class="profile-applications mb-50">
                                            <div class="profile-applications-main-block">
                                                <div class="profile-applications-form" style="overflow: auto">
                                                    <form action="#"th:action="@{/companySer/company/image}" id="uploadPhoto"
                                                          enctype="multipart/form-data" method="post" class="col-lg-2"
                                                            style="float: left; display: inline-block;">
                                                        <label>员工照片</label>
                                                        <div class="row mb-30">
                                                            <div class="create-photo-left"  style="float: right;margin-right: 1%;" >
                                                                <label class="btn create-photo-left form-group" id="photo-logo">
                                                                    <input type="file" id="photo" name="photo" class="photo"
                                                                           style="left:-9999px;position:absolute;">
                                                                    <p class="fa fa-camera" style="margin-top: 100px"><br>选择照片</p>
                                                                </label>
                                                                <input type="text" name="type" value="userPhoto" hidden>
                                                                <input type="text" name="userId" id="uuid" value="" hidden>
                                                            </div>
                                                        </div>
                                                    </form>
                                                    <form action="#" class="col-lg-10" style="float: right; display: inline-block;">
                                                        <div class="row mb-30">
                                                            <div class="col-lg-10">
                                                                <div class="row">
                                                                    <div  sec:authorize="isAuthenticated()" sec:authentication="principal.userId"
                                                                          type="text" id="companyId" hidden></div>

                                                                    <!-- 手机号 -->
                                                                    <div class="col-xl-4 col-lg-6 col-md-6 col-sm-6">
                                                                        <!-- Single Input Start -->
                                                                        <div class="single-input mb-25">
                                                                            <label>手机号 </label>
                                                                            <input class="account" type="text" id="phone" name="phone" placeholder="请输入手机号" value="">
                                                                            <div class="error" id="error_phone"></div>
                                                                        </div>
                                                                        <!-- Single Input End -->
                                                                    </div>
                                                                    <!-- 邮箱 -->
                                                                    <div class="col-xl-4 col-lg-6 col-md-6 col-sm-6">
                                                                        <!-- Single Input Start -->
                                                                        <div class="single-input mb-25">
                                                                            <label>邮箱 </label>
                                                                            <input class="account" type="email" id="email" name="email" placeholder="请输入邮箱" value="">
                                                                            <div class="error" id="error_email"></div>
                                                                        </div>
                                                                        <!-- Single Input End -->
                                                                    </div>
                                                                    <!-- 提醒 -->
                                                                    <!--<div class="col-xl-4 col-lg-6 col-md-6 col-sm-6">-->
                                                                    <!--    &lt;!&ndash; Single Input Start &ndash;&gt;-->
                                                                    <!--    <div class="single-input mb-25">-->
                                                                    <!--        <label> </label>-->
                                                                    <!--        <p style="font-size: 13px; color: #ff0000b5; text-align: center;">（手机号 / 邮箱 为登录时的账号,<br>至少选一项填写）</p>-->
                                                                    <!--    </div>-->
                                                                    <!--    &lt;!&ndash; Single Input End &ndash;&gt;-->
                                                                    <!--</div>-->
                                                                    <!-- 姓名 -->
                                                                    <div class="col-xl-4 col-lg-6 col-md-6 col-sm-6">
                                                                        <!-- Single Input Start -->
                                                                        <div class="single-input mb-25">
                                                                            <label >姓名 <span>*</span></label>
                                                                            <input type="text" id="name" name="name" placeholder="请输入姓名" value="">
                                                                            <div class="error" id="error_name"></div>
                                                                        </div>
                                                                        <!-- Single Input End -->
                                                                    </div>
                                                                    <!-- 职责 -->
                                                                    <div class="col-xl-10 col-lg-6 col-md-6 col-sm-6">
                                                                        <!-- Single Input Start -->
                                                                        <div class="single-input mb-25">
                                                                            <label>职责 <span>*</span></label>
                                                                            <input type="text" id="duty" name="duty" placeholder="请输入职责" value="">
                                                                            <div class="error" id="error_duty"></div>
                                                                        </div>
                                                                        <!-- Single Input End -->
                                                                    </div>

                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-12" style="text-align: center;">
                                                                <button class="ht-btn theme-btn theme-btn-two" onclick="crateHr();return false;" style="background-color: #808080c2">提交</button>
                                                            </div>
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 中间部分 End -->

        <div th:insert="~{/public::footer}"></div>
    </div>

    <div th:replace="~{/public::public-js}"></div>

    <script th:src="@{/js/myjob/company/createHR.js}"></script>


</body>

</html>
